#include "stm32f10x.h"                  // Device header
//#include "Delay.h"
#include "LCD1602.h"

LCD_InitTypeDef  LCD_InitStructure;

int main(void)
{
	Delay_Init (72);
	
	LCD1602_UserInit();		//LCD1602初始化
	LCD1602_Write_Init();	//LCD1602写初始化
	LCD1602_Open();
//	LCD1602_Shut();		
	
	LCD_InitStructure.com = 0xC0;	//第二行
	LCD_InitStructure.num = sizeof("xinniankuaile666")-1;	//计算长度
	LCD_InitStructure.data = (u8*)&"xinniankuaile666";	//显示的内容
	LCD1602_Write_Word_Display(LCD_InitStructure);	
	
	while(1)
	{
		for(u8 i = 0; i < 255; i ++)
		{
			LCD1602_Number_Display(0x87, i);
			Delay_ms(300);
		}
		
	}
}

/***********************************END OF FILE***********************************/
